﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SuppKids.Core.Domain
{
    public class Entity
	{
		[Key]
		public int Id { get; set; }

		// mytodo EF provides this functionality without this crutch
		[NotMapped]
		public bool IsTransient
		{
			get
			{
				return this.Id == default(int);
			}
		}
	}
}